home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11521 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: getting Unix's current running process id
  5. Date: Sun, 24 Mar 96 21:02:53 GMT
  6. Organization: none
  7. Message-ID: <827701373snz@genesis.demon.co.uk>
  8. References: <UlJ5MNm00YUwM=wGwV@andrew.cmu.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <UlJ5MNm00YUwM=wGwV@andrew.cmu.edu>
  15.            elie+@andrew.cmu.edu "Elie Jean-Philippe" writes:
  16.  
  17. >Hi all,
  18. >Does anybody know what C function returns the current running process's Unix
  19. >process id ?
  20. >Any help would be appreciated.
  21.  
  22. There is no C language function that does this. There is however a Unix system
  23. function called getpid() but the place to ask about that is
  24. comp.unix.programmer.
  25.  
  26. -- 
  27. -----------------------------------------
  28. Lawrence Kirby | fred@genesis.demon.co.uk
  29. Wilts, England | 70734.126@compuserve.com
  30. -----------------------------------------
  31.